let user=require('../../db/familylist')


let user2=require('../../db/useradmin')



module.exports=async (req,resp)=>{

 let uid=req.query.id;
//  console.log(uid);
   let datasouse= await user2.find({uid:uid})
//    console.log(datasouse);
   let newdata=await user.find({pid:uid})
//    console.log("newdata",newdata);
    resp.render('./admin/userdetails',{dataSouse:datasouse[0],newdat:newdata})
}